package jsyf.oa.entity.wreport;

import com.alibaba.fastjson.JSONObject;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by Administrator on 2017/11/22 0022.
 */
@Entity
@Table(name = "T_WRT_DETAIL", schema = "oa", catalog = "")
public class WReportDetailEntity  implements Serializable {
    private String id;
    private String content;
    private Integer type;
    private String wId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }


    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getWId() {
        return wId;
    }

    public void setwId(String wId) {
        this.wId = wId;
    }

    public JSONObject getJSONObject(){
        JSONObject obj = new JSONObject();

        obj.put("id",getId());
        obj.put("content",getContent());
        obj.put("type",getType());
        obj.put("w_id", getWId());

        return  obj;
    }

    public JSONObject getJSONObjectId(){
        JSONObject obj = new JSONObject();
        obj.put("id",getId());
        return  obj;
    }
}
